﻿using System.ComponentModel;
using System.Windows.Forms;

namespace HogoTools.Commit
{
	public class CommitDialog:Component
	{
		private string commitMessage;

		public string CommitMessage
		{
			get
			{
				return commitMessage;
			}
		}

		public DialogResult ShowDialog()
		{
			CommitForm dialogForm = new CommitForm();
			DialogResult dialogResult = dialogForm.ShowDialog();
			commitMessage = dialogForm.CommitMessage;
			return dialogResult;
		}

	}
}
